package com.syn;

import org.openjdk.jol.info.ClassLayout;

import java.util.concurrent.TimeUnit;

public class MTest {
    public static void main(String[] args) {
        // try {
        //     //休眠5秒
        //     TimeUnit.SECONDS.sleep(5);
        // } catch (InterruptedException e) {
        //     e.printStackTrace();
        // }
        BTestUpgrade object=new BTestUpgrade();
        System.out.println(ClassLayout.parseInstance(object).toPrintable());
        synchronized (object) {
            System.out.println(ClassLayout.parseInstance(object).toPrintable());
        }
    }
    public static class  BTestUpgrade{
         int a;
    }

}
          
